//
//  Work.swift
//  funcode
//
//  Created by Wan Jiading on 2016/12/2.
//  Copyright © 2016年 WanJiading. All rights reserved.
//	横切关注点   我们可以很好地共享代码

import UIKit

protocol Work {
	func work()
}

extension Work {
	func work() {
		print("实现者不用实现，默认干活啦")
	}
}


class Doctor: Work {}

class Teacher: Work {
	func work() {
		print("实现协议，自己干")
	}
}


//class Doctor: Work {
//	func work() {
//		print("治病")
//	}
//}
//
//class Teacher: Work {
//	func work() {
//		print("讲课")
//	}
//}

//class Student: Doctor, Teacher {
//	
//}
